import { Layout, ConfigProvider } from "antd";
import zhCN from "antd/es/locale/zh_CN";
import "./index.scss";
import Header from "../components/Header";
import MainContent from "../components/MainContent";

export default class IndexPage extends React.Component {
  render() {
    return (
      <ConfigProvider locale={zhCN}>
        <Layout className="w-100 h-100">
          <Layout.Header className="layout-header p-0">
            <Header />
          </Layout.Header>
          <Layout className="main-frame">
            <Layout.Content style={{ padding: "0 50px" }}>
              <MainContent />
            </Layout.Content>
          </Layout>
        </Layout>
      </ConfigProvider>
    );
  }
}
